import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '@/pages/main/main.vue'
import Login from '@/pages/login/login.vue'

Vue.use(VueRouter)

const routes = [
    { path: '/', name: 'Login', component: Login },
    { path: '/main', name: 'Main', component: Main }
]

const router = new VueRouter({
    mode: 'history', 
    routes
})

export default router